function scanTransf(Barcode) {
    try {
        if (Barcode.indexOf('YG|') > -1) {
            var recode = Barcode;
            var BarcodeArray = recode.split('|');
            return {
                type: '员工',
                recode: recode,
                data: {
                    tag: BarcodeArray[0],
                    code: BarcodeArray[1]
                }
            }
        } else if (Barcode.indexOf('RJH|') > -1) {
            var recode = Barcode;
            var BarcodeArray = recode.split('|');
            return {
                type: '生产计划号',
                recode: recode,
                data: {
                    tag: BarcodeArray[0],
                    code: BarcodeArray[1]
                }
            }
        } else if (Barcode.indexOf('PMC|') > -1) {
            var recode = Barcode;
            var BarcodeArray = recode.split('|');
            return {
                type: '主计划号',
                recode: recode,
                data: {
                    tag: BarcodeArray[0],
                    code: BarcodeArray[1]
                }
            }
        } else if (Barcode.indexOf('KW|') > -1) {
            var recode = Barcode;
            var BarcodeArray = recode.split('|');
            return {
                type: '库位',
                recode: recode,
                data: {
                    tag: BarcodeArray[0],
                    code: BarcodeArray[1]
                }
            }
        } else if (Barcode.indexOf('FH|') > -1) {
            var recode = Barcode;
            var BarcodeArray = recode.split('|');
            return {
                type: '发货单',
                recode: recode,
                data: {
                    tag: BarcodeArray[0],
                    code: BarcodeArray[1]
                }
            }
        } else {
            return '';
        }
    } catch (e) {
        return '';
    }





}